﻿<%@ Page Title="Log In" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true"
    CodeBehind="Login.aspx.cs" Inherits="HPortal.Account.Login" %>

<script runat="server">

</script>
<asp:Content ID="BodyContent" runat="server" ContentPlaceHolderID="MainContent">
    <div id="wrapper">
        <div id="title"> 
            <h1>Quản trị hệ thống - Website quản lý đề tài khoa học</h1>
        </div>
        <div id="main">        
            <asp:HyperLink ID="RegisterHyperLink" runat="server" EnableViewState="false" Visible="false">Register</asp:HyperLink>
            <asp:Login ID="LoginUser" runat="server" EnableViewState="false" RenderOuterTable="false"   DestinationPageUrl="~/Backend/ChannelList.aspx">
            <LayoutTemplate>
                <asp:ValidationSummary ID="LoginUserValidationSummary" runat="server" CssClass="failureNotification"  alidationGroup="LoginUserValidationGroup" />                
                    <fieldset class="cell_left">
                        <legend><h2>Thông tin đăng nhập</h2></legend>
                        <p>
                            <asp:Label ID="UserNameLabel" runat="server" AssociatedControlID="UserName">Tên đăng nhập:</asp:Label>
                            <asp:TextBox ID="UserName" runat="server" CssClass="textEntry"></asp:TextBox>
                            <asp:RequiredFieldValidator ID="UserNameRequired" runat="server" ControlToValidate="UserName"
                                CssClass="failureNotification" ErrorMessage="User Name is required." ToolTip="User Name is required."
                                ValidationGroup="LoginUserValidationGroup">*</asp:RequiredFieldValidator>
                        </p>
                        <p>
                            <asp:Label ID="PasswordLabel" runat="server" AssociatedControlID="Password">Mật khẩu:</asp:Label>
                            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                            <asp:TextBox ID="Password" runat="server" CssClass="passwordEntry" TextMode="Password"></asp:TextBox>
                            <asp:RequiredFieldValidator ID="PasswordRequired" runat="server" ControlToValidate="Password"
                                CssClass="failureNotification" ErrorMessage="Password is required." ToolTip="Password is required."
                                ValidationGroup="LoginUserValidationGroup">*</asp:RequiredFieldValidator>
                        </p>
                        <p>
                            <asp:CheckBox ID="RememberMe" runat="server" />
                            <asp:Label ID="RememberMeLabel" runat="server" AssociatedControlID="RememberMe" CssClass="inline">Lưu trạng thái đăng nhập</asp:Label>
                        </p>
                        <p>
                            <asp:Button ID="LoginButton" runat="server" CommandName="Login" Text="Đăng nhập hệ thống" ValidationGroup="LoginUserValidationGroup" Height="30" Width="155"/>
                            &nbsp;<asp:Button ID="HomeButton" runat="server" Text="Trang chủ" Height="30" 
                                Width="155" onclick="HomeButton_Click" />
                        </p>
                    </fieldset>                
                    <%--<fieldset class="cell_right">
                        <legend><h2>Warning !</h2>                            
                        </legend>                        
                    </fieldset>--%>
                    <div style="clear: both;"></div>
            </LayoutTemplate>
        </asp:Login>
        </div>
    </div>
</asp:Content>
